package com.xiaowan.exception;

import com.xiaowan.model.common.dtos.ResponseResult;

/**
 * 自定义异常类 继承运行时异常
 */
public class CustomException  extends RuntimeException{
    private ResponseResult responseResult=new ResponseResult();
    public CustomException(Integer code,String msg){
        this.responseResult.error(code,msg);
    }

    public ResponseResult getResponseResult() {
        return responseResult;
    }
}